#include <iostream.h>
#include "string.h"




string string::(string str)
{ s=strdup(str.s);
}
string string::operator +(string sir)
{char *p;
p=new char[strlen(s)+strlen(sir.s)];
strcpy(p,s);
strcat(p,sir.s);
return p;
}
string string::operator =(string sir)
{s=strdup(sir.s);
return s;
}
string string::+= (string sir)
{return string(strcat(s,strdup(sir.s)));
}
istream operator>>(istream f,string str)
{cout<<"introduceti sirul: ";
f>>str.s;
return f;
}
ostream operator<<(ostream f,string str)
{f<<str.s;
return f;
}